import pygame
from pygame.locals import *

pygame.font.init()

FONT='fonts/Comic_Sans_MS.ttf'
ALTERNATIVE_FONT=pygame.font.get_default_font()
FONT_DIM = 30

RED_IMAGE='images/red.png'
BLUE_IMAGE='images/blue.png'
PURPLE_IMAGE='images/purple.png'
GREEN_IMAGE='images/green.png'
YELLOW_IMAGE='images/yellow.png'
############
BAR_IMAGE = 'images/small_bar.png'
BALL_IMAGE = 'images/small_ball.png'
BG_IMAGE = 'images/ark_bg.png'
ARK_IMAGE='images/arkanoid.png'
FIELD_IMAGE = 'images/arkanoid_2.png'
###########
TETRIS_IMAGE='images/sfondo.png'
BACKGROUND_IMAGE='images/tetris_definitivo.png'
################
MENU_BG='images/menu_bg.png'
STAR_IMG='images/star.png'
ICON = 'images/icon.png'
NAME_INSERT='images/NameInsert.png'
HELP0='images/help1.png'
HELP1='images/help2.png'
#################
SINGLE_RED_IMAGE='images/red_one.png'
SINGLE_BLUE_IMAGE='images/blue_one.png'
SINGLE_PURPLE_IMAGE='images/purple_one.png'
SINGLE_GREEN_IMAGE='images/green_one.png'
SINGLE_YELLOW_IMAGE='images/yellow_one.png'
ONE_BALL='images/1_ball.png'
TWO_BALL='images/2_ball.png'
THREE_BALL='images/3_ball.png'
CREDITS='images/credits.png'



ARK_WIDTH=600
ARK_HEIGHT=400
ARK_XOFFSET=15
ARK_YOFFSET=15
ARK_RECT=pygame.Rect(ARK_XOFFSET,ARK_YOFFSET,ARK_WIDTH,ARK_HEIGHT-ARK_YOFFSET)
DEAD_LINE=370-ARK_YOFFSET
ARK_LIFE_RECT=pygame.Rect(ARK_XOFFSET,ARK_YOFFSET,ARK_WIDTH,DEAD_LINE)
ARK_BALLOON_CENTER=(716,317)
ARK_BALLOON_RECT=pygame.Rect(615,252,826-615,372-252)
ARK_CENTER=(ARK_XOFFSET+ARK_RECT.width*0.5,ARK_YOFFSET+ARK_RECT.height*0.5)
SCREEN_WIDTH=880
SCREEN_HEIGHT=660
NAME_SCREEN_WIDTH=500
NAME_SCREEN_HEIGHT=450
TETRIS_WIDTH=420
TETRIS_HEIGHT=600
TETRIS_XOFFSET=10
TETRIS_YOFFSET=30
BLOCK_DIMENSION=30
NAME_TETRIS_RECT=pygame.Rect(480,520,340,450)
ARK_BALL_POS=(102,555)
ARK_NAME_POS=(102,508)
ARK_BOTTOM_RECT=pygame.Rect(0,500,400,160)
SCORE_RECT=pygame.Rect(480,580,340,450)
NAME_CENTER=(295,290)
MATRIX_HEIGHT=TETRIS_HEIGHT/BLOCK_DIMENSION
MATRIX_WIDTH=TETRIS_WIDTH/BLOCK_DIMENSION
BALLOON_CENTER=(664,325)
BALLOON_RECT=pygame.Rect(585,270,250,180)
TETRIS_RECT=pygame.Rect(TETRIS_XOFFSET,TETRIS_YOFFSET,\
	    TETRIS_WIDTH+TETRIS_XOFFSET,TETRIS_HEIGHT+TETRIS_YOFFSET)
BOTTOM_RECT=pygame.Rect(0,TETRIS_YOFFSET+TETRIS_HEIGHT,\
	    TETRIS_XOFFSET+TETRIS_WIDTH,SCREEN_HEIGHT-(TETRIS_YOFFSET+TETRIS_HEIGHT))
RIGHT_RECT=pygame.Rect(TETRIS_XOFFSET+TETRIS_WIDTH,0,\
	   SCREEN_WIDTH-(TETRIS_XOFFSET+TETRIS_WIDTH),SCREEN_HEIGHT)


BLACK=(0,0,0)
SKYBLUE  = (135,206,235)
WHITE=(255,255,255)
GOLD = (255,215,0)
GOLDENROD = (218,165,32)
DARKORANGE = (255,140,0)
LIGHTYELLOW=(255,255,102)
BROWN = (170, 68, 17)
RED=(204,51,0)
LIGHT_ORANGE=(255,102,0)
FIREBRICK= (178, 34, 34)
ROYALBLUE=(65, 105, 225)  
BUTTON_COLOR = ROYALBLUE
SCORE_COLOR=SKYBLUE
NAME_COLOR_1=ROYALBLUE
NAME_COLOR_2=SKYBLUE
TIME_COLOR=SKYBLUE

##ARK SPEED FUNZIONA AL CONTRARIO (SE AUMENTO RALLENTA,
#SE DIMINUISCO DIVENTA PIU' VELOCE
ARK_SPEED=3

##BALL COLLISION VALUES
NOTHING = 0
WALL = 1
BAR = 2
WALL_AND_BAR=3

##ARK EVENT COSTANT
WON=3
LOST=4

#COSTANTI PER LO SPOSTAMENTO NEI MENU'
TO_MAIN=0
CONTINUE=1
EXIT_GAME=2
TETRIS=5
ARK=6

#VARIABILE PER IL PASSAGGIO DI LIVELLO DEL TETRIS
LINES_TO_DEL=25

#COSTANTI SMILEY
FONT_DIM2 = 14
FIGHT="images/fight.png"
GOOD="images/good.png"
CAREFUL="images/careful.png"
BAD="images/bad.png"
DISASTER="images/disaster.png"
BOMB="images/bomb.png"
STUPID="images/stupid.png"
WELL_DONE="images/well_done.png"
PROF="images/prof.png"
LOST='images/lost.png'

EMOTIC_POS=(500,360)#centro del rettangolo
EMOTICW_POS=(510,423)
EMOTIC_RECT=Rect(440,305,150,140)
